package com.deer.wms.inventory.service.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deer.wms.base.system.model.Supplier.SupplierManage;
import com.deer.wms.base.system.model.Supplier.SupplierManageVo;
import com.deer.wms.base.system.model.http.HttpClientss;
import com.deer.wms.inventory.dao.StockTakeTaskMapper;
import com.deer.wms.inventory.model.stockTake.StockTakeTask;
import com.deer.wms.inventory.model.stockTake.StockTakeTaskCriteria;
import com.deer.wms.inventory.model.stockTake.StockTakeTaskDto;
import com.deer.wms.inventory.service.StockTakeTaskService;
import com.deer.wms.project.root.core.result.CommonCode;
import com.deer.wms.project.root.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by 郭靖勋 on 2020/02/06.
 */
@Service
@Transactional
public class StockTakeTaskServiceImpl extends ServiceImpl<StockTakeTaskMapper, StockTakeTask> implements StockTakeTaskService {

    @Autowired
    private StockTakeTaskMapper stockTakeTaskMapper;

    @Override
    public List<StockTakeTaskDto> findList(StockTakeTaskCriteria criteria) {
        return stockTakeTaskMapper.findList(criteria);
    }

    @Override
    public Integer selectNum(Integer stockMasterId) {
        return stockTakeTaskMapper.selectNum(stockMasterId);
    }

    //  //根据stockTakeMasterId 查询数据
    @Override
    public StockTakeTask getStockTakeMasterId(Integer id) {
        return stockTakeTaskMapper.getStockTakeMasterId(id);
    }

}
